package com.xinzhi.savingpot.task.controller;


import com.xinzhi.savingpot.task.service.impl.TaskClassInfoServiceImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author astupidcoder
 * @since 2021-01-05
 */
@RestController
@Api("任务分类类型")
@RequestMapping("/task-class-info")
@CrossOrigin
public class TaskClassInfoController {

    @Autowired
    private TaskClassInfoServiceImpl classService;

    @GetMapping("/getClassList")
    @ApiOperation("获取任务分类类型")
    public BaseResponse queryTaskList(){
        BaseResponse baseResponse = classService.queryClassList();
        return baseResponse;
    }

}
